//
//  UIViewController+Roate.m
//  XiaoMiao
//
//  Created by 23 on 2018/3/31.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import "UIViewController+Roate.h"
#import "XMSinglePicScanController.h"

@implementation UIViewController (Roate)


//是否旋转
-(BOOL)shouldAutorotate{
    if ([self isKindOfClass: XMSinglePicScanController.class]) {
        return YES;
    }
    return NO;
}
//支持的方向
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    if ([self isKindOfClass: XMSinglePicScanController.class]) {
        return UIInterfaceOrientationMaskPortrait|UIInterfaceOrientationMaskLandscapeRight;
    }
    return UIInterfaceOrientationMaskPortrait;
}

@end
